package com.interface01;

public interface MyInterface {

    public static final int WEEKDAY_1 = 1;

    public abstract void methodA();

    public abstract void methodB();

    //默认
    default void method3() {
        privateMethod();
        System.out.println("在默认的方法中1");
    }

    default void method5() {
        privateMethod();
        System.out.println("在默认的方法中2");
    }

    //静态类
    public static void method4() {
        System.out.println("在接口的静态方法内");
    }

    //私有
    private void privateMethod() {
        System.out.println("A");
    }
}
